<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<div id="ajax-loader" style="cursor: progress; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: #fff; z-index: 10000; overflow: hidden;">
    <img src="/images/ajax-loader.gif" style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto;" />
</div>

<form class="form-horizontal" role="form" id="form">
    <div class="form-group">
        <label for="sex" class="col-sm-2 control-label">aa</label>
        <div class="col-sm-10">
            <div id="sex" class="cc-ComboDict" remark="必须选择一样" model="1" initValue="0"  onchange="onchangeHandler" data-options="'dictCode':'sex'" style="width: 200px" ></div>
            <!--
            <div id="sex" class="cc-ComboDict" remark="必须选择一样" model="0" initValue="1"  data-options="'dictCode':'dict_type'" style="width: 200px" ></div>
            <div id="sex" class="cc-ComboDict" remark="必须选择一样" model="1" initValue="1"  data-options="'dictCode':'dict_type'" style="width: 200px" ></div>
            <div id="sex" class="cc-ComboDict" remark="必须选择一样" model="0" initValue="0,1"  multiple="true" data-options="'dictCode':'dict_type'" style="width: 200px" ></div>
            <div id="sex" class="cc-ComboDict" remark="必须选择一样" model="1" initValue="0,1"  multiple="true" data-options="'dictCode':'dict_type'" style="width: 200px" ></div>

            -->
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <input type="button" value="isValid" onclick="isValid()">
            <input type="button" value="getAddData" onclick="getAddData()">
            <input type="button" value="getEditData" onclick="getEditData()">
            <input type="button" value="getQueryData" onclick="getQueryData()">
            <input type="button" value="setValue" onclick="setValue()">
            <input type="button" value="getValue" onclick="getValue()">
        </div>
    </div>
</form>
<script type="text/javascript">
    var _PATH_LOAD_SUCCESS_ = false;
</script>
<script type="text/javascript" src="../lib/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../lib/layer/layer.js"></script>

<script type="text/javascript" src="../lib/handlebars/handlebars-v4.0.5.js"></script>
<script type="text/javascript" src="../lib/handlebars/handlebars-extend.js"></script>

<link href="../lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<script type="text/javascript" src="../lib/bootstrap/js/bootstrap.min.js"></script>

<script type="text/javascript"  src="../lib/common/common.js"></script>

<link type="text/css" href="../lib/component/css/cc.css" rel="stylesheet" />
<script type="text/javascript"  src="../lib/component/js/cc.js"></script>

<script type="text/javascript">
    _$.parser.onComplete = function(){
        _PATH_LOAD_SUCCESS_ = true;
        $('#ajax-loader').fadeOut();
    };

    function onchangeHandler(){

    }
    function sexDataFilter(list){

        if(list == null || list.length == 0){
            return [];
        }
        list = list.filter(function(n,index,arr){
            if(n.code == 0){
                return false;
            }
            return true;
        });
        return list;
    }

    $(function(){
      _$.parser.parse()
    });
   function setValue(){
       var sexObj = _$.getById("sex");
       sexObj.setValue(2);
   }
</script>
</body>
</html>
